import request from '@/utils/request'

// 查询核心产品和解决方案-相关产品列表
export function listMenRelatedGoods(query) {
  return request({
    url: '/men/menRelatedGoods/list',
    method: 'get',
    params: query
  })
}

// 查询核心产品和解决方案-相关产品详细
export function getMenRelatedGoods(id,goodsName) {
  return request({
    url: '/men/menRelatedGoods/' + id+'&'+(goodsName||''),
    method: 'get'
  })
}

// 新增核心产品和解决方案-相关产品
export function addMenRelatedGoods(data) {
  return request({
    url: '/men/menRelatedGoods',
    method: 'post',
    data: data
  })
}

// 修改核心产品和解决方案-相关产品
export function updateMenRelatedGoods(data) {
  return request({
    url: '/men/menRelatedGoods',
    method: 'put',
    data: data
  })
}

// 删除核心产品和解决方案-相关产品
export function delMenRelatedGoods(id) {
  return request({
    url: '/men/menRelatedGoods/' + id,
    method: 'delete'
  })
}

// 导出核心产品和解决方案-相关产品
export function exportMenRelatedGoods(query) {
  return request({
    url: '/men/menRelatedGoods/export',
    method: 'get',
    params: query
  })
}